// ----------------------------------------------------------------------------
// Copyright (c) 2014, Nicolas P. Rougier. All Rights Reserved.
// Distributed under the (new) BSD License.
// ----------------------------------------------------------------------------

/* ---------------------------------------------------------
   Hyperbolic cosine
   --------------------------------------------------------- */
float cosh(float x)
{
    return 0.5 * (exp(x)+exp(-x));
}

/* ---------------------------------------------------------
   Hyperbolic sine
   --------------------------------------------------------- */
float sinh(float x)
{
    return 0.5 * (exp(x)-exp(-x));
}
